package com.ruoyi.system.domain;

import java.math.BigDecimal;
import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 用户账单记录对象 sys_user_billing_record
 * 
 * @author ruoyi
 * @date 2024-08-13
 */
public class SysUserBillingRecord extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 主键id */
    private Long recordId;

    /** 用户id */
    @Excel(name = "用户id")
    private Long userId;

    /** 楼id */
    @Excel(name = "楼id")
    private Long buildingId;

    /** 部门id */
    @Excel(name = "部门id")
    private Long deptId;

    /** 账单类型 1=取暖缴费 */
    @Excel(name = "账单类型 1=取暖缴费")
    private Integer type;

    /** 操作类型 1=加 2=减 */
    @Excel(name = "操作类型 1=加 2=减")
    private Integer operateType;

    /** 金额 */
    @Excel(name = "金额")
    private BigDecimal amount;

    /** 余额 */
    @Excel(name = "余额")
    private BigDecimal balance;

    /** 账单信息 */
    @Excel(name = "账单信息")
    private String message;

    /** 支付方式 1=现金 2=刷卡 3=支付宝 4=微信 5=余额 */
    @Excel(name = "支付方式 1=现金 2=刷卡 3=支付宝 4=微信 5=余额")
    private Integer payType;

    /** 缴纳月份 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "缴纳月份", width = 30, dateFormat = "yyyy-MM-dd")
    private Date payTime;

    public void setRecordId(Long recordId) 
    {
        this.recordId = recordId;
    }

    public Long getRecordId() 
    {
        return recordId;
    }
    public void setUserId(Long userId) 
    {
        this.userId = userId;
    }

    public Long getUserId() 
    {
        return userId;
    }
    public void setBuildingId(Long buildingId) 
    {
        this.buildingId = buildingId;
    }

    public Long getBuildingId() 
    {
        return buildingId;
    }
    public void setDeptId(Long deptId) 
    {
        this.deptId = deptId;
    }

    public Long getDeptId() 
    {
        return deptId;
    }
    public void setType(Integer type) 
    {
        this.type = type;
    }

    public Integer getType() 
    {
        return type;
    }
    public void setOperateType(Integer operateType) 
    {
        this.operateType = operateType;
    }

    public Integer getOperateType() 
    {
        return operateType;
    }
    public void setAmount(BigDecimal amount) 
    {
        this.amount = amount;
    }

    public BigDecimal getAmount() 
    {
        return amount;
    }
    public void setBalance(BigDecimal balance) 
    {
        this.balance = balance;
    }

    public BigDecimal getBalance() 
    {
        return balance;
    }
    public void setMessage(String message) 
    {
        this.message = message;
    }

    public String getMessage() 
    {
        return message;
    }
    public void setPayType(Integer payType) 
    {
        this.payType = payType;
    }

    public Integer getPayType() 
    {
        return payType;
    }
    public void setPayTime(Date payTime) 
    {
        this.payTime = payTime;
    }

    public Date getPayTime() 
    {
        return payTime;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("recordId", getRecordId())
            .append("userId", getUserId())
            .append("buildingId", getBuildingId())
            .append("deptId", getDeptId())
            .append("type", getType())
            .append("operateType", getOperateType())
            .append("amount", getAmount())
            .append("balance", getBalance())
            .append("message", getMessage())
            .append("payType", getPayType())
            .append("payTime", getPayTime())
            .append("createBy", getCreateBy())
            .append("createTime", getCreateTime())
            .toString();
    }
}
